class parent:
    def hi(self):
        print("正在调用父类的方法...")


class child(parent):
    pass


p = parent()
p.hi()
c = child()
c.hi()


class child(parent):
    def hi(self):
        print("正在调用子类的方法...")


c = child()
c.hi()
